#define _CRT_SECURE_NO_WARNINGS 1
#include "Sort.h"

void MergeSortTest()
{
	int data[] = { 10,6,7,2,3,7,1,0,5 };
	int sz = sizeof(data) / sizeof(data[0]);
	MergeSort(data, sz);

	printf("MergeSort:");

	PrintArray(data, sz);
}

void CountSortTest()
{
	// int data[] = { 100,105,100,103,100,101,103,106,100 };
	int data[] = { 10,6,7,2,3,7,1,0,5,2,2,2,1,-1,-1,-1,-9,-9,-9,-9,-8,-6 };
	int sz = sizeof(data) / sizeof(data[0]);
	CountSort(data, sz);

	printf("CountSort:");

	PrintArray(data, sz);
}

void MergeSortNonRTest()
{
	int data[] = { 10,6,7,2,3,7,1,0,3 };
	int sz = sizeof(data) / sizeof(data[0]);
	MergeSortNonR(data, sz);
	PrintArray(data, sz);
}

int main()
{	
	MergeSortNonRTest();

	return 0;
}